package com.yuanli.cosmeticmirror.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yuanli.cosmeticmirror.R;
import com.yuanli.cosmeticmirror.base.MyApp;
import com.yuanli.cosmeticmirror.bean.PhotoBean;

import comenjoy.com.imageloadlibrary.GlideUtil;

/**
 * 我的照片适配器
 */
public class PhotoAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public PhotoAdapter() {
        super(R.layout.items_photo);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        GlideUtil.getInstance().loadRoudImage(MyApp.getInstance(), item, helper.getView(R.id.photo_img), 5);
    }
}
